<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
  <title>Title</title>
</head>
<body>
<br/>
<jsp:include page="top.jsp"></jsp:include>
<hr/>
<table border="1px" width="1000px">
  <c:forEach items="${list}" var="ly">
    <tr>
      <td width="160px">用户名:</td><td>${ly.name}</td>
      <td>顾客留言时间：</td><td>${ly.time}</td>
      <td rowspan="3">
        <a href="/ly/delLy.do?id=${ly.id}" onclick="return delConfirm()">删除</a>
      </td>
    </tr>
    <tr><td>顾客留言标题：</td><td colspan="3">${ly.tit}</td></tr>
    <tr><td>顾客留言内容：</td><td colspan="3">${ly.txt}</td></tr>
  </c:forEach>
</table>
<script>
  function delConfirm() {
    if (confirm("确认删除？")) {
      return true;
    } else {
      return false;
    }
  }
</script>
</body>
</html>